package cn.legend.travel.tour.team.startup;

import cn.legend.travel.tour.team.service.ITourService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;
@Slf4j
@Component
public class TourSearchRunner implements ApplicationRunner {
    @Autowired
    private ITourService tourService;
    @Override
    public void run(ApplicationArguments args) throws Exception {
        log.info("开始执行【重新创建旅游团的搜索数据】的数据预热");
        tourService.rebuildSearch();


    }
}
